/* 设备管理模块样式表 - 主题化设计 */

/* 主页面布局 */
body {
    background: linear-gradient(130deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
    color: var(--theme-text-color);
}

.container {
    background: transparent;
    color: var(--theme-text-color);
}

.device-management-container {
    padding: 16px;
    margin: 0 auto;
    margin-top: 16px; /* 调整为更小的间距 */
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    color: var(--theme-text-color);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--theme-text-color);
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 设备列表样式 */
.device-list-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    margin-bottom: 24px;
}

.device-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    color: #FFFFFF;
}

.device-table th, 
.device-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.device-table th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    color: #FFFFFF;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.device-table tbody tr {
    transition: background-color 0.2s ease;
}

.device-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.12);
}

.device-table tbody tr:last-child td {
    border-bottom: none;
}

/* 设备状态样式 */
.device-online td:nth-child(6) {
    color: #4CAF50;
    font-weight: 500;
}

.device-offline td:nth-child(6) {
    color: #FF9800;
    font-weight: 500;
}

/* 空列表状态 */
.empty-list {
    padding: 64px 0;
    text-align: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.1);
}

/* 表格中的按钮特殊样式 */
.device-table .btn-edit,
.device-table .btn-delete,
.device-table .btn-test {
    min-width: auto;
    height: 36px;
    font-size: 14px;
    padding: 0 16px;
    margin-right: 8px;
    border-radius: 18px;
}

.device-table .btn-edit {
    background: var(--theme-card-bg);
    color: var(--theme-text-color);
    border: 1px solid var(--theme-card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.device-table .btn-edit:hover {
    background: rgba(255, 255, 255, 0.15);
}

.device-table .btn-delete {
    background-color: rgba(255, 59, 48, 0.3);
    color: #FFFFFF;
    border: 1px solid rgba(255, 59, 48, 0.5);
}

.device-table .btn-delete:hover {
    background-color: rgba(255, 59, 48, 0.5);
}

.device-table .btn-test {
    background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
    color: var(--theme-text-color);
    border: 1px solid var(--theme-card-border);
}

.device-table .btn-test:hover {
    background: linear-gradient(135deg, var(--theme-gradient-end) 0%, var(--theme-gradient-start) 100%);
}

.device-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.device-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

/* 搜索框样式 */
.search-container {
    position: relative;
    min-width: 200px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: rgba(76, 175, 80, 0.7);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .device-management-container {
        padding: 12px;
        margin-top: 12px;
    }

    .page-title {
        font-size: 20px;
    }

    .device-table th:nth-child(4),
    .device-table th:nth-child(5),
    .device-table td:nth-child(4),
    .device-table td:nth-child(5) {
        display: none;
    }

    .header-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .search-container {
        order: -1;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }
}

@media screen and (width: 1280px) and (height: 800px), 
       screen and (width: 800px) and (height: 1280px) {
    .device-management-container {
        padding: 20px;
        max-width: 1200px;
        margin-top: 20px;
    }

    .page-header {
        margin-bottom: 32px;
    }

    .page-title {
        font-size: 28px;
    }

    .device-table {
        font-size: 18px;
    }

    .device-table th, 
    .device-table td {
        padding: 20px;
    }
}

/* 表单模态框双列布局优化 */
.common-form {
    width: 100%;
}

/* 双列布局下的表单组样式 */
.common-form[style*="grid"] .form-group {
    margin-bottom: 16px;
    padding: 0 8px;
}

.common-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.common-form .form-group input,
.common-form .form-group select,
.common-form .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--theme-card-border);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 16px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.common-form .form-group input::placeholder,
.common-form .form-group select::placeholder,
.common-form .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.common-form .form-group input:focus,
.common-form .form-group select:focus,
.common-form .form-group textarea:focus {
    outline: none;
    border-color: var(--theme-gradient-start);
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.common-form .form-error {
    color: #FF3B30;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.common-form .form-group.error input,
.common-form .form-group.error select,
.common-form .form-group.error textarea {
    border-color: #FF3B30;
}

/* 横屏模式下的模态框优化 */
@media (orientation: landscape) {
    .modal-body {
        padding: 20px !important;
    }
    
    .modal-content {
        margin: 5vh auto !important;
    }
    
    .common-form[style*="grid"] {
        column-gap: 16px;
    }
    
    .common-form .form-group {
        margin-bottom: 12px;
    }
    
    /* 优化表单元素尺寸，使其更紧凑 */
    .common-form .form-group input,
    .common-form .form-group select {
        padding: 10px;
        height: 42px;
    }
    
    /* 确保按钮在横屏模式下更紧凑 */
    .modal-footer {
        padding: 16px 28px !important;
    }
    
    .modal-footer .btn {
        min-height: 42px;
        padding: 0 24px;
    }
}

/* 模态框样式优化 */
.modal.common-modal .modal-content {
    background-color: var(--theme-modal-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* 针对不同主题的模态框背景优化 */
.theme-default .modal.common-modal .modal-content {
    background-color: var(--theme-modal-bg) !important;
}

.theme-green .modal.common-modal .modal-content {
    background-color: var(--theme-modal-bg) !important;
}

.theme-purple .modal.common-modal .modal-content {
    background-color: var(--theme-modal-bg) !important;
}

.theme-orange .modal.common-modal .modal-content {
    background-color: var(--theme-modal-bg) !important;
}

.theme-dark .modal.common-modal .modal-content {
    background-color: var(--theme-modal-bg) !important;
}

.modal.common-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%) !important;
    padding: 20px 24px !important;
}

/* 针对不同主题的模态框标题栏背景优化 */
.theme-default .modal.common-modal .modal-header {
    background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%) !important;
}

.theme-green .modal.common-modal .modal-header {
    background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%) !important;
}

.theme-purple .modal.common-modal .modal-header {
    background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%) !important;
}

.theme-orange .modal.common-modal .modal-header {
    background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%) !important;
}

.theme-dark .modal.common-modal .modal-header {
    background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%) !important;
}

.modal.common-modal .modal-header h2 {
    color: #FFFFFF !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.modal.common-modal .modal-body {
    padding: 24px !important;
}

.modal.common-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 16px 24px !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

.modal.common-modal .btn {
    min-width: 100px !important;
    height: 44px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
}

.modal.common-modal .btn-primary {
    background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
    color: var(--theme-text-color);
    border: 1px solid var(--theme-card-border);
}

.modal.common-modal .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
}

.modal.common-modal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal.common-modal .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* 参数设置区域样式 */
.parameter-section {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--theme-card-border);
    padding-bottom: 0.5rem;
}

.parameter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    font-size: 18px;
    color: #FFFFFF;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

/* 主体布局样式 */
.main-container {
    display: flex;
    height: calc(100vh - 64px);
    background: linear-gradient(130deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
}

/* 左侧菜单样式 */
.left-menu {
    width: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px;
    margin: 20px 0 20px 20px;
    overflow: hidden;
}

.menu-item {
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    margin-bottom: 4px;
    color: #FFFFFF;
    border-left: none;
}

.menu-item i {
    margin-right: 12px;
    font-size: 16px;
    color: #FFFFFF;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.menu-item.active {
    color: #FFFFFF;
    font-weight: 500;
    border-left: none;
}

/* 内容区域样式 */
.content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: transparent;
}

.content-section {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.content-section.active {
    display: block;
}

/* 数据列表样式 */
.data-list {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.data-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.data-item:last-child {
    border-bottom: none;
}

.item-label {
    font-size: 16px;
    color: #FFFFFF;
}

.item-value {
    display: flex;
    align-items: center;
}

.value-text {
    font-size: 16px;
    color: #4CAF50;
    font-weight: 500;
    margin-right: 5px;
}

.value-unit {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 设备管理容器调整 */
.device-management-container {
    padding: 0;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .left-menu {
        width: 100%;
        height: auto;
        padding-top: 0;
        display: flex;
        overflow-x: auto;
    }
    
    .menu-item {
        padding: 12px 15px;
        font-size: 14px;
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }
    
    .menu-item.active {
        border-left: none;
        border-bottom: 3px solid var(--theme-primary-color, #4285f4);
    }
    
    .content-area {
        padding: 10px;
    }
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    color: #FFFFFF;
}

.btn-primary {
    background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
    color: var(--theme-text-color);
    border: 1px solid var(--theme-card-border);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* 编辑对话框样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dialog-overlay.active {
    opacity: 1;
}

.edit-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 80%;
    max-width: 3.5rem;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
}

.edit-dialog.active {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.dialog-header {
    padding: 0.18rem 0.2rem;
    border-bottom: 1px solid var(--theme-card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--theme-text-color);
    font-size: 0.18rem;
    font-weight: 500;
}

.close-btn {
    font-size: 0.22rem;
    color: var(--theme-text-color);
    opacity: 0.7;
    cursor: pointer;
    width: 0.3rem;
    height: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.dialog-body {
    padding: 0.25rem 0.2rem;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--theme-card-border);
    border-radius: 8px;
    padding: 0.05rem;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.input-group:focus-within {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.value-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--theme-text-color);
    font-size: 0.2rem;
    padding: 0.12rem 0.15rem;
    width: 100%;
    outline: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.value-input::-webkit-inner-spin-button, 
.value-input::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0;
}

.value-input.error {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    transform: translate3d(0, 0, 0);
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-3px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(3px, 0, 0);
    }
}

.input-unit {
    padding: 0 0.15rem;
    color: var(--theme-text-color);
    font-size: 0.18rem;
    opacity: 0.8;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.15rem 0.2rem 0.2rem;
    gap: 0.12rem;
}

.dialog-footer button {
    padding: 0.1rem 0.25rem;
    border-radius: 6px;
    font-size: 0.16rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-weight: 500;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--theme-text-color);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.save-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--theme-text-color);
}

.save-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 双列配置数据样式 */
.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.config-header h3 {
    font-size: 20px;
    color: #FFFFFF;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sync-all-btn {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sync-all-btn i {
    font-size: 16px;
}

.dual-config .data-header {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    margin-bottom: 5px;
    align-items: center;
}

.dual-config .data-header .header-label {
    flex: 1.5;
    font-size: 15px;
    color: #FFFFFF;
}

.dual-config .data-header .header-value {
    flex: 1;
    font-size: 15px;
    color: #FFFFFF;
}

.dual-config .data-header .header-action {
    flex: 0.8;
    text-align: center;
    font-size: 15px;
    color: #FFFFFF;
}

.dual-config .data-item {
    display: flex;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease;
    align-items: center; /* 使内容垂直居中 */
    min-height: 60px; /* 设置最小高度 */
}

.dual-config .item-label {
    flex: 1.5;
    font-size: 16px;
    color: #FFFFFF;
}

.dual-config .item-value {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.dual-config .local-value {
    color: #FFFFFF;
}

.dual-config .server-value {
    color: rgba(255, 255, 255, 0.7);
}

.dual-config .value-text {
    font-size: 18px;
    font-weight: 500;
}

.dual-config .value-unit {
    font-size: 14px;
    margin-left: 4px;
    opacity: 0.8;
}

.dual-config .item-action {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

/* 修改同步按钮样式，使用control-button样式 */
.dual-config .sync-btn {
    min-width: 80px;
    padding: 8px 15px;
    border-radius: 6px;
    border: none;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--theme-text-color);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dual-config .sync-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* 修改全部同步按钮样式 */
.sync-all-btn {
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--theme-text-color);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sync-all-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.sync-all-btn i {
    margin-right: 6px;
}

/* 添加控制按钮样式，参考other.html */
.control-button {
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--theme-text-color);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.control-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.control-button.active {
    background: var(--theme-secondary-color);
}

.ventilation-table th, .ventilation-table td {
    text-align: center;
    vertical-align: middle;
}

.ventilation-table .device-type-cell {
    font-weight: bold;
}

.form-error {
    color: #F44336; /* Red from spec */
    font-size: 14px;
    margin-top: 4px;
}

.form-group.error input {
    border-color: #F44336 !important;
}

.device-group-cell {
    vertical-align: middle;
    text-align: center;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.1);
}

.parameter-label {
    font-weight: 500;
}

@media (max-width: 768px) {
    .dual-config .data-header,
    .dual-config .data-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .dual-config .data-header {
        display: none;
    }
    
    .dual-config .item-label {
        font-weight: 500;
        margin-bottom: 8px;
    }
    
    .dual-config .item-value {
        justify-content: flex-start;
        margin-bottom: 8px;
    }
    
    .dual-config .item-action {
        justify-content: flex-start;
    }
}

/* 列表项悬停效果 */
.dual-config .data-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

/* 同步按钮激活状态 */
.dual-config .sync-btn.active {
    background-color: rgba(25, 118, 210, 0.6);
    box-shadow: 0 0 8px rgba(25, 118, 210, 0.4);
}

/* 强调不同颜色 */
.dual-config .local-value .value-text {
    color: #E3F2FD;
}

.dual-config .server-value .value-text {
    color: #C8E6C9;
}

/* 添加设备按钮样式，参考 dual-config .sync-btn 样式 */
#add-device-btn, #add-user-btn {
    min-width: 100px !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    border: none !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    background-image: none !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    height: auto !important;
    transform: none !important;
}

#add-device-btn:hover, #add-user-btn:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.25) !important;
    transform: none !important;
    box-shadow: none !important;
}

#add-device-btn .btn-icon, #add-user-btn .btn-icon {
    margin-right: 8px !important;
    font-size: 16px !important;
}

/* 添加用户管理样式 */
.user-card {
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: var(--card-bg-color, #fff);
    transition: all 0.3s ease;
}

.user-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.user-card .device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color, #eee);
}

.user-card .device-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-text-color, #333);
}

.user-card .device-actions {
    display: flex;
    gap: 8px;
}

.user-card .device-details {
    padding: 12px 15px;
}

.user-card .detail-item {
    margin-bottom: 8px;
    display: flex;
}

.user-card .detail-label {
    width: 80px;
    color: var(--secondary-text-color, #666);
}

.user-card .detail-value {
    flex: 1;
    color: var(--primary-text-color, #333);
}

/* 按钮样式 */
.btn-edit, .btn-delete {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.2s;
}

.btn-edit:hover {
    background-color: var(--primary-color-light, #e6f7ff);
    color: var(--primary-color, #1890ff);
}

.btn-delete:hover {
    background-color: var(--danger-color-light, #fff1f0);
    color: var(--danger-color, #ff4d4f);
}

/* 搜索框样式 */
.search-container {
    position: relative;
    margin-right: 10px;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 4px;
    width: 200px;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--primary-color, #1890ff);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    outline: none;
}

/* 表单样式 */
.layui-form-label {
    width: 100px;
}

.layui-input-block {
    margin-left: 130px;
}

/* 空列表提示 */
.empty-list {
    text-align: center;
    padding: 30px;
    color: var(--secondary-text-color, #999);
    font-size: 14px;
}

/* 用户管理表格样式 */
.user-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg-color, rgba(255, 255, 255, 0.1));
    border-radius: 5px;
    overflow: hidden;
}

.user-table th,
.user-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.user-table th {
    background-color: var(--header-bg-color, rgba(0, 0, 0, 0.2));
    color: var(--header-text-color, #fff);
    font-weight: normal;
}

.user-table tr:hover {
    background-color: var(--hover-bg-color, rgba(255, 255, 255, 0.05));
}

.user-table .btn-edit,
.user-table .btn-delete {
    padding: 5px 15px;
    margin: 0 5px;
    border-radius: 20px;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-table .btn-edit {
    background-color: #8c8c8c;
}

.user-table .btn-delete {
    background-color: #d9534f;
}

.user-table .user-status {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
}

.user-table .status-active {
    color: #52c41a;
}

.user-table .status-inactive {
    color: #f56c6c;
}

.user-table .empty-list {
    text-align: center;
    padding: 32px 0;
    color: rgba(255, 255, 255, 0.6);
}

/* Styles from settings.css */
.settings-content {
    width: 100%;
    height: 100%;
    padding: 20px 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.settings-card {
    background: var(--theme-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--theme-card-border);
    box-shadow: 0 4px 24px var(--theme-card-shadow);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 15px;
    width: 85%;
    max-width: 800px;
    box-sizing: border-box;
}

.settings-title {
    font-size: 22px;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0 0 6px 0;
}

.settings-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px 0;
}

.theme-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.theme-options.compact {
    gap: 12px;
    margin-bottom: 10px;
}

.theme-option {
    padding: 10px 20px;
    border-radius: 6px;
    border: 2px solid transparent;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #FFFFFF;
    min-width: 70px;
    text-align: center;
    background: none;
}

.theme-options.compact .theme-option {
    padding: 8px 16px;
    font-size: 14px;
    min-width: 60px;
}

.theme-option.active {
    border-color: #FFFFFF;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.theme-option[data-theme="default"] {
    background: linear-gradient(135deg, #0A3A8F 0%, #0E1D47 100%);
}

.theme-option[data-theme="green"] {
    background: linear-gradient(135deg, #1E8449 0%, #145A32 100%);
}

.theme-option[data-theme="purple"] {
    background: linear-gradient(135deg, #6A1B9A 0%, #4A148C 100%);
}

.theme-option[data-theme="orange"] {
    background: linear-gradient(135deg, #E65100 0%, #BF360C 100%);
}

.theme-option[data-theme="dark"] {
    background: linear-gradient(135deg, #263238 0%, #1A1A1A 100%);
}

.account-info-container {
    background: var(--theme-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--theme-card-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.account-avatar {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-avatar i {
    font-size: 36px;
    color: #FFFFFF;
}

.account-details {
    flex: 1;
}

.account-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.account-item {
    margin-bottom: 16px;
}

.account-item.flex-item {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}

.account-item:last-child {
    margin-bottom: 0;
}

.account-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.account-value {
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 500;
}

.account-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.action-btn i {
    font-size: 18px;
}

.danger-btn {
    background: rgba(239, 83, 80, 0.2);
    border: 1px solid rgba(239, 83, 80, 0.5);
}

.danger-btn:hover {
    background: rgba(239, 83, 80, 0.4);
} 